package com.itheima.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.admin.pojo.SetmealDishes;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author longbosheng
 * @Date 2022/6/18 11:55
 * @PackageName:com.itheima.mapper
 * @ClassName: SetmealDishMapper
 * @Description: TODO
 * @Version 1.0
 */
@Mapper
public interface SetmealDishMapper extends BaseMapper<SetmealDishes> {
    /**
     * 删除对应套餐的菜品
     * @param setmealId
     * @return
     */
    @Delete("delete  from setmeal_dish where setmeal_id = #{setmealId}")
    int deleteSetmealDish(String setmealId);
}
